﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.InterferenceVolumeQuery.CApInterferenceVolumeQueryCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.InterferenceVolumeQuery.Resources;
using System.Windows;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;
using Tecnomatix.Engineering.Ui.WPF;


namespace DnProcessSimulateCommands.InterferenceVolumeQuery;

public class CApInterferenceVolumeQueryCmd : TxButtonCommand
{
  private TxWindow ivqDlg;
  private CApInterferenceVolumeQueryEnabler enabler;

  public CApInterferenceVolumeQueryCmd() => this.enabler = new CApInterferenceVolumeQueryEnabler();

  public virtual bool Licensed => TxCommandLicenser.InterferenceVolumeQueryLicense;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.enabler;

  public virtual string Bitmap => "InterferenceVolumeQuery.Resources.IVQCmdIcon.bmp";

  public virtual string LargeBitmap => "InterferenceVolumeQuery.Resources.IVQCmdIcon_LARGE.png";

  public virtual string Category => IVQResources.IVQ_CATEGORY;

  public virtual string Description => IVQResources.IVQ_IVQ_DESCRIPTION;

  public virtual string Name => IVQResources.IVQ_IVQ_NAME;

  public virtual string Tooltip => IVQResources.IVQ_IVQ_TOOLTIP;

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("InterferenceQuery");

  public virtual void Execute(object cmdParams)
  {
    this.ivqDlg = (TxWindow) new CUiInterferenceVolumeQueryDlg();
    ((Window) this.ivqDlg).Show();
  }
}
